import request from '@/utils/request'

// 查询收费桥梁统计测试列表
export function listTollBridgeStatTest(query) {
  return request({
    url: '/functiontest/TollBridgeStatTest/list',
    method: 'get',
    params: query
  })
}

// 查询收费桥梁统计测试详细
export function getTollBridgeStatTest(id) {
  return request({
    url: '/functiontest/TollBridgeStatTest/' + id,
    method: 'get'
  })
}

// 新增收费桥梁统计测试
export function addTollBridgeStatTest(data) {
  return request({
    url: '/functiontest/TollBridgeStatTest',
    method: 'post',
    data: data
  })
}

// 修改收费桥梁统计测试
export function updateTollBridgeStatTest(data) {
  return request({
    url: '/functiontest/TollBridgeStatTest',
    method: 'put',
    data: data
  })
}

// 删除收费桥梁统计测试
export function delTollBridgeStatTest(id) {
  return request({
    url: '/functiontest/TollBridgeStatTest/' + id,
    method: 'delete'
  })
}

// 导出收费桥梁统计测试
export function exportTollBridgeStatTest(query) {
  return request({
    url: '/functiontest/TollBridgeStatTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入收费桥梁统计测试数据
export function importTollBridgeStatTest(data) {
  return request({
    url: '/functiontest/TollBridgeStatTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateTollBridgeStatTest() {
  return request({
    url: '/functiontest/TollBridgeStatTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditTollBridgeStatTestBatch() {
  return request({
    url: '/functiontest/TollBridgeStatTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditTollBridgeStatTestBatch(data) {
  return request({
    url: '/functiontest/TollBridgeStatTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditTollBridgeStatTestBatch() {
  return request({
    url: '/functiontest/TollBridgeStatTest/centerAudit/batch',
    method: 'post'
  })
}
